body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #8BC34A;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    position: relative;
    display: flex;
    gap: 20px;
}

#gameCanvas {
    border: 3px solid #5D4037;
    background-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-ui {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
}

.inventory, .tools, .stats {
    background-color: #FFF9C4;
    border: 2px solid #FFC107;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h3 {
    margin: 0 0 10px 0;
    color: #F57C00;
    text-align: center;
}

.inventory-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.inventory-slot {
    width: 40px;
    height: 40px;
    border: 1px solid #D7CCC8;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.inventory-slot img {
    max-width: 30px;
    max-height: 30px;
}

.item-count {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
}

.tool-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-buttons button {
    padding: 8px;
    background-color: #795548;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tool-buttons button:hover {
    background-color: #5D4037;
}

.tool-buttons button.active {
    background-color: #FF5722;
    box-shadow: 0 0 0 2px #FFC107;
}

.stats {
    text-align: center;
}

.stats p {
    margin: 8px 0;
    color: #5D4037;
    font-weight: bold;
}

#next-day {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#next-day:hover {
    background-color: #1976D2;
}

#energy {
    color: #4CAF50;
}

#money {
    color: #FF9800;
}

.evaluation {
    background-color: #E3F2FD;
    border: 2px solid #2196F3;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.evaluation-text {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    min-height: 80px;
    font-style: italic;
    color: #333;
    border: 1px dashed #90CAF9;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}